package Demo.demo5;

public class Main {
    public static void main(String[] args) {
        Food food1 = new Food("肉罐头", 20, "猫粮");
        Food food2 = new Food("干粮", 10, "猫粮");
        Food food3 = new Food("肉罐头", 30, "狗粮");
        Food food4 = new Food("干头", 20, "狗粮");

        Cat cat1 = new Cat("咪咪", ColorEnum.WHITE, "英短", true, false, GenderEnum.MALE, "18809098888");
        Feeder feeder = new Feeder();
        double price =feeder.feedAnimal(cat1,food1,2);

        String msg = cat1.getName() + cat1.getMasterPhone() + "服务价格" + price;
        System.out.println(msg);
    }
}
